#include "stm32f10x.h"                  // Device header
#include "Delay.h"
#include "OLED.h"
#include "AD.h"

uint16_t AD_Value;

int main(void)
{
	OLED_Init();
	AD_Init();
	
	OLED_ShowString(1,1,"ADValue:");

	while(1)
	{
		AD_Value = AD_GetValue(ADC_Channel_0);
		OLED_ShowNum(1, 9, AD_Value, 5);
		Delay_ms(500);
	}
}
